package com.yc.rh.biz.impl;

import java.util.List;
import java.util.Map;

import com.yc.rh.biz.IUserInfoBiz;
import com.yc.rh.dao.IUserInfoDao;
import com.yc.rh.entities.PageInfo;
import com.yc.rh.entities.UserInfo;

public class UserInfoBizImpl implements IUserInfoBiz{
	private IUserInfoDao userInfoDao;
	
	public void setUserInfoDao(IUserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}

	@Override
	public int addUserInfo(UserInfo uf) {
		return userInfoDao.addUserInfo(uf);
	}

	@Override
	public int checkEmail(String email) {
		return userInfoDao.checkEmail(email);
	}

	@Override
	public List<String> getAlleMmail() {
		return userInfoDao.getAlleMmail();
	}

	@Override
	public UserInfo loginUserInfo(UserInfo uf) {
		return userInfoDao.loginUserInfo(uf);
	}

	@Override
	public List<UserInfo> findUserInfoByPage(PageInfo pageInfo) {
		return userInfoDao.findUserInfoByPage(pageInfo);
	}

	@Override
	public List<UserInfo> findUserInfo(Map<String, String> map, Integer pageNo, Integer pageSize) {
		return userInfoDao.findUserInfo(map, pageNo, pageSize);
	}

	@Override
	public List<UserInfo> findUserInfoByDate(String startDate, String endDate, Integer pageNo, Integer pageSize) {
		return userInfoDao.findUserInfoByDate(startDate, endDate, pageNo, pageSize);
	}

	@Override
	public int updatePwd(String usid, String cldPwd, String newPwd) {
		return userInfoDao.updatePwd(usid, cldPwd, newPwd);
	}

	@Override
	public int update(UserInfo uf) {
		return userInfoDao.update(uf);
	}

	@Override
	public int delUserInfo(String usid) {
		return userInfoDao.delUserInfo(usid);
	}

	@Override
	public int getTotal() {
		return userInfoDao.getTotal();
	}

	@Override
	public String findUnameByUsid(int usid) {
		return userInfoDao.findUnameByUsid(usid);
	}
	
}
